import { request } from '@/service/request';

/** 获取容器历史使用轨迹列表 */
export function fetchGetContainerUseingLogList (params?: Api.System.ContainerUseingLogSearchParams) {
    return request<Api.System.ContainerUseingLogList>({
        url: '/system/containerUseingLog/list',
        method: 'get',
        params
    });
}

/** 新增容器历史使用轨迹 */
export function fetchCreateContainerUseingLog (data: Api.System.ContainerUseingLogOperateParams) {
    return request<boolean>({
        url: '/system/containerUseingLog',
        method: 'post',
        data
    });
}

/** 修改容器历史使用轨迹 */
export function fetchUpdateContainerUseingLog (data: Api.System.ContainerUseingLogOperateParams) {
    return request<boolean>({
        url: '/system/containerUseingLog',
        method: 'put',
        data
    });
}

/** 批量删除容器历史使用轨迹 */
export function fetchBatchDeleteContainerUseingLog (ids: CommonType.IdType[]) {
    return request<boolean>({
        url: `/system/containerUseingLog/${ids.join(',')}`,
        method: 'delete'
    });
}
